package com.cnsoft.persistent.player.U102020Collect;

import java.util.List;

import javax.annotation.Resource;

import org.cnsoft.framework.db.page.PageModel;
import org.cnsoft.framework.db.support.ext.MyDataBaseOperateSupport2;
import org.springframework.stereotype.Repository;

/**
 * 会员收藏表数据库操作实体
 */
@Repository("U102020CollectDao")
//@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class U102020CollectDao extends MyDataBaseOperateSupport2<U102020CollectDBO> {
	@Resource
	private U102020CollectMapper mapperU102020Collect;

	public U102020CollectMapper getMapper() {
		return mapperU102020Collect;
	}

	// 自定义查询
	public List<U102020CollectDBO> doSelectDataCustomParams(U102020CollectDBO formParamBean) {
		return getMapper().doSelectDataCustomParams(formParamBean);
	}

	// 自定义分页查询
	public PageModel<U102020CollectDBO> doSelectPageCustomParams(PageModel<U102020CollectDBO> formParamPageModel) {
		// 补充删除标记
		// ((ADataBaseDefaultSupportBean)
		// formParamPageModel.getFormParamBean()).prepareDeleteFlag(1);
		// SAAS模式
		// MySAASBusinesslogicPlugin.sqlHandle((ADataBaseDefaultSupportBean)
		// formParamPageModel.getFormParamBean());
		// 默认排序
		// formParamPageModel.setOrderbyIdDESC();
		// 查询数据
		formParamPageModel.setPageListData(getMapper().doSelectPageCustomParams(formParamPageModel));

		return formParamPageModel;
	}
}
